package mfund.com.controller;

import java.util.concurrent.ConcurrentHashMap;


public class MFResult extends ConcurrentHashMap<String,Object>
{
	public MFResult(){
		this.put("status",1);	//成功
		this.put("message","success"); //成功消息
		this.put("data","");	//业务数据
		this.put("extProperty","");   //扩展字段
	}


	public void setStatusFail(){
		this.put("status",0);
	}

	public void setStatusSuccess(){
		this.put("status",1);
	}

	public void setMessage(Object obj){
		this.put("message",obj);
	}

	public void setData(Object obj){
		this.put("data",obj);
	}

	public void setExtProperty(Object obj){
		this.put("extProperty",obj);
	}

	///分页用到

	public void setPageNo(Object obj){
		this.put("pageNo",obj);
	}

	public void setPageSize(Object obj){
		this.put("pageSize",obj);
	}

	public void setTotalCount(Object obj){
		this.put("totalCount",obj);
	}

}